Skip to content

Run workflow semantics as GitHub does: container jobs, unresolved and skipped reusable calls, needs on a caller, emulator-hosted actions, jobs list - #37

Merged
waynesun09 merged 14 commits into
mainfrom
emu-06-workflow-semantics
Nov 20, 2026
Merged

waynesun09 merged 14 commits into
mainfrom
emu-06-workflow-semantics

Conversation

@waynesun09

@waynesun09 waynesun09 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Part of #39

What this fixes

Six places where a workflow run on the emulator ended differently from the same run on GitHub. In most of them the run passed or hung where GitHub's fails or moves on.

GitHub Emulator before
A container: or services: job runs its steps in containers The steps ran on the runner host, so the result described the host
A reusable-workflow call that can't be resolved fails the run The call became a job with no steps, which passes
A reusable-workflow caller skipped by its if: is one skipped job; a run whose jobs were all skipped concludes skipped Every called job was listed as skipped, and the run concluded success
A job can needs: a reusable-workflow caller and read needs.<caller>.outputs The job waited forever: the caller is no job in the run
GitHub Enterprise Server resolves uses: owner/repo@ref against its own repositories first Every action was fetched from github.com, so an action pushed here failed with "does not exist upstream"
A run's jobs list shows a job once it is queued Jobs still blocked on needs: were listed as waiting, the status GitHub uses for an environment approval

Changes

  • Container and services jobs (workflow_service.build_job_graph, new _refusal_steps): the job's steps are replaced by one step that fails with ::error::container: not supported by this emulator's runners; the job's steps were NOT run. The message names the keys present. This follows the existing docker:// refusal.
  • Unresolved reusable calls (_materialize_reusable_jobs, new _reusable_placeholder, fail_refused_job): a call to a repository the emulator does not hold, one nested too deep, or one that calls itself becomes a job that the emulator concludes failure itself, with no runner: at run creation, or when its needs finish and its if: holds. Its step and log say why.
  • Skipped caller (create_workflow_run, workflow_scheduler.check_run_completion): a caller without needs: has its if: evaluated once. When it is false the run gets one skipped job under the caller's key, and no called jobs. A run whose jobs all concluded skipped concludes skipped.
  • Needs on a caller (workflow_service, workflow_scheduler): a need on a caller becomes a need on every job it inlined. At promotion needs.<caller> is built from those jobs: the worst of their results, and the callee's on.workflow_call.outputs evaluated against them. Nested calls re-prefix the keys at each level. A need on a skipped top-level caller points at its skipped job and reads result: skipped; a nested caller with the same key is not affected.
  • Emulator-hosted actions (actions_distributed_task, action_download_service): owner/repo@ref resolves against a repository here first. Its archive is built with git archive, with one top-level directory as GitHub's has, and cached apart from upstream archives.
    • As on GitHub, a job may use an action from a public repository, its own repository, or a private one with the same owner. (GitHub also needs that owner to allow it; the emulator has no such setting.) A repository here that the job may not use is unresolvable and is not looked up upstream; the archive route applies the same rule.
    • A name the emulator does not hold goes upstream. GHES goes upstream only for a repository it lacks; the emulator also does when the repository is here but lacks the ref, so a partial local copy of a public action still works.
  • Jobs list (api/actions.py): jobs still blocked on needs: are left out until they are queued.
  • Each fix has its docs/bugs/fixed/ entry, listed in PLAN.md.

Tests

Test file Covers
tests/actions/test_container_jobs.py (6) container: as a string and a mapping, services:, both together, a job without either, an empty container:
tests/actions/test_reusable_unresolved.py (4) A call to a missing repository fails; a self-calling loop fails; the run fails with no runner; a call with needs fails when they finish
tests/actions/test_skipped_reusable_caller.py (7) A skipped caller is one skipped job, listed under its name; a job that needs it is skipped; an if: always() job reads its result as skipped; an all-skipped run concludes skipped; a caller that runs, and a run with only some jobs skipped, are unchanged
tests/actions/test_reusable_caller_needs.py (4) The need maps to the called jobs; the dependent runs with the call's outputs and result; the result is the worst of the called jobs; a nested caller sharing a skipped top-level caller's key is waited for
tests/actions/test_emulator_hosted_actions.py (5) An action here is served from here; another owner's private repository is not an action (download info and archive both 404, nothing fetched upstream); the same owner's private repository is served; a name not held here, and a ref missing here, still go upstream
tests/actions/test_jobs_list_unstarted.py (1) A job waiting on needs: is not listed until it is queued

Checked by running the files, as first written, against main's code: each new test failed there, except the seven that pin unchanged behaviour (a job without containers, an empty container:, a caller that runs, a run with only some jobs skipped, and a name or ref the emulator lacks going upstream). test_reusable_caller_needs.py does not import on main, because the helper it tests is new. tests/actions/test_execution.py changes one expectation: an all-skipped run concludes skipped.

Full suite: runs in this pull request's CI (ci.yml).

Effect on existing behaviour

  • Workflows without container:, services: or reusable-workflow calls run as before.
  • A run that used to pass only because a container job ran on the host, or because an unresolved call had no steps, now fails. That is the point of the change.
  • A caller with needs: is still decided at promotion, so if it is skipped there, the called jobs are still listed as skipped.
  • Actions not on the emulator are fetched upstream as before.

@waynesun09
waynesun09 requested a review from jctanner November 18, 2026 22:42
@qodo-code-review

qodo-code-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Align workflow jobs and action downloads with GitHub semantics

🐞 Bug fix 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Refuse unsupported container jobs and fail unresolved reusable calls instead of producing
 misleading results.
• Correct skipped callers, caller dependencies, run conclusions, and job-list visibility.
• Resolve accessible emulator-hosted actions locally, with upstream fallback when a ref is absent.
Merge Risk 🟡 Medium

Blast radius 🔴 High 💥 2 capabilities

  • 2 affected capabilities span independent functional scopes: actions_download_integration, github_actions_workflow_execution.
  • The materializer, scheduler, expression evaluator, and downstream dependent jobs jointly implement one bounded workflow-execution behavior: invoking a reusable workflow and making its result, outputs, and ancestor status available to later jobs.
  • These are implementation hops of the same end-to-end capability, not independent deployment scopes.
  • Reference resolution and archive delivery are two hops of one bounded integration behavior: a runner asks for owner/repo@ref and receives the corresponding action contents.
  • The API lookup, local Git resolution, archive builder, and runner consumer are not separate capabilities.
Behavioral complexity 🟡 Medium 🧩 Multiple interactions

  • Before, reusable calls were flattened and ordinary needs were judged from directly stored job rows.
  • After, the change introduces aliases mapping callers to multiple inlined jobs, nested caller prefixes, per-level input chains, workflow_call output evaluation, skipped-caller substitution, and call-level result aggregation.
  • New correctness conditions are: every caller dependency must wait for exactly its called jobs; call success must differ from an individual skipped called job; nested inputs must be rendered in the workflow level where each with expression was written; and outputs, needs, and ancestor status must agree across chained calls.
  • Existing expression rendering and scheduler infrastructure are reused, but these new interactions materially alter their inputs and invariants.
Potential damage 🟡 Medium 🩹 Incorrect results

  • A wrong scheduler or expression result can cause production workflows to execute the wrong stage, skip required work, or pass incorrect values to later jobs.
  • Reverting the code restores the prior behavior but does not repair already-created run records or externally triggered effects; affected runs can generally be rerun after code correction.
  • Equal business importance is assumed because no business-criticality declaration was supplied.
  • Usually recoverable by correcting/reverting the code and rerunning the affected workflow.
  • Persistent run status, job conclusions, and any external effects already produced by an incorrectly promoted job require manual cleanup or compensating actions; no automatic repair worker is established by this change.
Assessed commit d0bbc92
Diagram

graph TD
  Y["Workflow YAML"] --> M["Reusable materializer"] --> G["Job graph"] --> C["Run creation"] --> S["Job scheduler"] --> J["Jobs API"]
  S --> R["Runner"] --> A["Action downloads"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Persist reusable callers as aggregate jobs
  • ➕ Could make caller dependencies and results addressable without synthetic aliases.
  • ➖ Requires a broader job-model and scheduler change while the existing design inlines called jobs.
2. Implement job and service containers
  • ➕ Would execute container workflows rather than explicitly refusing them.
  • ➖ Requires container orchestration across runner paths and is much larger than preventing incorrect execution.

Recommendation: Keep the targeted fixes: caller aliases preserve the existing inlined-job model, and explicit container refusal prevents false results without claiming unsupported execution. Consider aggregate caller rows if reusable-workflow behavior expands further.

Files changed (19) +1459 / -45

Bug fix (5) +413 / -44
actions.pyHide dependency-blocked jobs from the jobs list +20/-13

Hide dependency-blocked jobs from the jobs list

• Excludes waiting jobs from run job listings and total counts. Includes import and unused-variable cleanup.

src/app/api/actions.py

actions_distributed_task.pyResolve and serve accessible local actions +74/-12

Resolve and serve accessible local actions

• Looks up emulator repositories before upstream actions, checks job-repository access, and applies the same rule to direct archive requests. Falls back upstream when a local ref or commit is unavailable.

src/app/api/actions_distributed_task.py

action_download_service.pyBuild cached archives from local Git repositories +60/-0

Build cached archives from local Git repositories

• Adds local Git ref resolution and GitHub-shaped git archives. Keeps local archives separate from the upstream cache.

src/app/services/action_download_service.py

workflow_scheduler.pyResolve caller aliases and refused jobs at promotion +19/-3

Resolve caller aliases and refused jobs at promotion

• Provides dependent jobs with reusable-caller results and outputs, fails deferred unresolved calls without a runner, and concludes all-skipped runs as skipped.

src/app/services/workflow_scheduler.py

workflow_service.pyCorrect job materialization and run creation semantics +240/-16

Correct job materialization and run creation semantics

• Adds explicit container and reusable-call refusals, remaps caller dependencies, and records aliases for caller outputs. Creates one skipped row for eligible skipped callers and fails unresolved calls without assigning runners.

src/app/services/workflow_service.py

Tests (7) +831 / -1
test_container_jobs.pyTest unsupported container-job refusal +46/-0

Test unsupported container-job refusal

• Covers container and service declarations, failing diagnostics, and unchanged ordinary jobs.

tests/actions/test_container_jobs.py

test_emulator_hosted_actions.pyTest local action downloads and access +165/-0

Test local action downloads and access

• Verifies local archive delivery, upstream fallback, rejection of another owner's private action, and same-owner private access.

tests/actions/test_emulator_hosted_actions.py

test_execution.pyExpect skipped conclusion for an all-skipped run +2/-1

Expect skipped conclusion for an all-skipped run

• Adjusts an existing execution assertion to the new run-conclusion behavior.

tests/actions/test_execution.py

test_jobs_list_unstarted.pyTest visibility of queued versus waiting jobs +42/-0

Test visibility of queued versus waiting jobs

• Checks that a dependency-blocked job is absent from the jobs list until queued.

tests/actions/test_jobs_list_unstarted.py

test_reusable_caller_needs.pyTest dependencies on reusable-workflow callers +177/-0

Test dependencies on reusable-workflow callers

• Covers dependency expansion, declared outputs, combined results, and nested callers sharing a top-level key.

tests/actions/test_reusable_caller_needs.py

test_reusable_unresolved.pyTest failure of calls that cannot be inlined +156/-0

Test failure of calls that cannot be inlined

• Verifies diagnostic steps and logs, failure without a runner, deferred failure after dependencies, and recursive-call refusal.

tests/actions/test_reusable_unresolved.py

test_skipped_reusable_caller.pyTest skipped callers and run conclusions +243/-0

Test skipped callers and run conclusions

• Covers single skipped caller rows, dependent jobs, runnable callers, and all-skipped versus mixed run conclusions.

tests/actions/test_skipped_reusable_caller.py

Documentation (7) +215 / -0
PLAN.mdIndex six resolved workflow and action bugs +6/-0

Index six resolved workflow and action bugs

• Adds links to the six new fixed-bug writeups.

PLAN.md

actions-in-emulator-repositories-are-fetched-upstream.mdDocument local action resolution and access rules +34/-0

Document local action resolution and access rules

• Explains local-first resolution, upstream fallback, private-repository restrictions, and archive caching.

docs/bugs/fixed/actions-in-emulator-repositories-are-fetched-upstream.md

container-and-services-jobs-run-on-the-host.mdDocument refusal of unsupported container jobs +28/-0

Document refusal of unsupported container jobs

• Records why host execution was misleading and how container and service jobs now fail explicitly.

docs/bugs/fixed/container-and-services-jobs-run-on-the-host.md

job-needing-a-reusable-workflow-caller-waits-forever.mdDocument caller dependency resolution +37/-0

Document caller dependency resolution

• Describes remapped dependencies, caller outputs, nested keys, and skipped-caller handling.

docs/bugs/fixed/job-needing-a-reusable-workflow-caller-waits-forever.md

jobs-list-shows-jobs-waiting-on-needs.mdDocument jobs-list visibility +22/-0

Document jobs-list visibility

• Records the observed GitHub behavior and explains why jobs blocked on dependencies are omitted.

docs/bugs/fixed/jobs-list-shows-jobs-waiting-on-needs.md

skipped-reusable-workflow-caller-lists-the-called-jobs.mdDocument skipped reusable-caller behavior +51/-0

Document skipped reusable-caller behavior

• Explains single-job representation and skipped run conclusions. Notes that callers with dependencies remain a limitation.

docs/bugs/fixed/skipped-reusable-workflow-caller-lists-the-called-jobs.md

unresolved-reusable-workflow-call-passes.mdDocument failure of unresolved reusable calls +37/-0

Document failure of unresolved reusable calls

• Details failing placeholders, no-runner completion, and diagnostic logs for calls that cannot be inlined.

docs/bugs/fixed/unresolved-reusable-workflow-call-passes.md

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:44 PM UTC · Completed 10:52 PM UTC

Commit: f59fcb1 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.11

@qodo-code-review

qodo-code-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Forged job tokens expose private repos 🐞 Bug ⛨ Security
Description
dt_action_archive authorizes local repository downloads using _get_job_from_download_credential,
whose token lookup trusts the decoded sub without verifying the signature or expiry. A requester
can supply a token naming another existing job ID and download an archive from a private repository
that job's owner may use.
Code

src/app/api/actions_distributed_task.py[R1411-1412]

+    held, local = await _local_action_repository(name, job, db)
+    if held and local is None:
Evidence
The token helper extracts sub and selects its job without checking the signature; the new archive
path then uses that selected job to permit same-owner private repository access and serve its Git
archive. A signature- and expiry-checking validator already exists but is not called on this path.

src/app/api/actions_distributed_task.py[350-374]
src/app/api/actions_distributed_task.py[1381-1395]
src/app/api/actions_distributed_task.py[1409-1424]
src/app/services/job_token_service.py[39-72]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The archive route now uses a job identity derived from an unverified token payload to authorize downloads of private local repositories.
## Fix Focus Areas
- src/app/api/actions_distributed_task.py[350-374]
- src/app/api/actions_distributed_task.py[1409-1418]
- src/app/services/job_token_service.py[39-72]
## Recommended Fix
Validate the job token's signature, time claims, and subject before returning a job from either the Basic or Bearer credential path. Reject invalid credentials before resolving or serving a local repository.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


2. Private actions can run upstream code ✓ Resolved

Resolving commit: 9f435de

Resolution reason
Added _is_public helper. In dt_resolve_action_download_info, when sha is None and the held local
repository is not public, returns 404 UnresolvableActionDownloadInfoException instead of falling
through to resolve_action_sha upstream. In dt_action_archive, a non-public local repository lacking
the commit raises HTTP 404 instead of fetch_action_archive upstream. Tests cover both paths (ref
missing and commit missing from a private repo, asserting no upstream lookup).
Description
dt_resolve_action_download_info falls back to resolve_action_sha whenever a local ref is
missing, even when the held repository is private; dt_action_archive likewise fetches upstream
when the requested commit is absent locally. If the same name and ref exist upstream, a job using
its owner's private action receives code from that unrelated upstream repository rather than a
resolution failure.


Remediation recommended

3. Any user can hijack upstream actions like actions/checkout ✗ Dismissed
Description
dt_resolve_action_download_info now resolves owner/repo@ref against a local repository first,
and _local_action_repository treats any public local repository with a matching name as usable by
every job. Any authenticated user can call POST /orgs to create an organization named actions
(or docker, aws-actions, …). If they then push a public checkout repository with a v4 tag,
every other tenant's uses: actions/checkout@v4 runs their code with that job's token and secrets.


Informational

4. Caller outputs from a nested call read as empty ✓ Resolved

Resolving commit: 9f435de

Resolution reason
The commit keeps the nested callers in the outer caller's alias (callers, via _prefix_alias and
result["_callers"]), and _alias_entry recursively builds each nested caller's entry {result,
outputs} and adds it to the jobs context under its own key before rendering the outer outputs. This
matches the finding's recommended approach (preserve nested caller mappings, reconstruct nested jobs
entry from child jobs with worst-result rule and output rendering), though implemented differently
from the suggested prompt's exact wording. A test
(test_a_call_output_read_from_a_nested_callers_output) covers the scenario.
Description
_materialize_reusable_jobs stores only flattened child job keys in an outer caller’s jobs map,
while its output expressions still reference nested caller keys such as jobs.B.outputs.y. When
needs_alias_entries evaluates those expressions for a dependent reading needs.<caller>.outputs,
the nested caller is absent from the jobs context and its exported output renders as an empty
string even if its child job produced a value.

5. Run page no longer shows upcoming jobs ✗ Dismissed
Description
list_jobs now filters out status == "waiting", and the same endpoint backs the emulator's own
web UI run page (ActionRunPage.tsx). Stages not started yet vanish from the UI. A job stuck in
waiting because of a scheduler fault is then invisible from the run view, so the run shows
in_progress with no listed job explaining why.

Grey Divider

Context sources
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
✅ Compliance rules (platform): 6 rules
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/fullsend (sha: f28397f5) — View relationship
✅ Context preparation
  Commit messages: summarized; full text retained for this review
Review mode: Auto: 🧠 Deep: Multiple independent workflow semantics and action-resolution paths create dense defect risk.

Grey Divider

Tip of the day
💡 Did you know, you can turn on the rule miner and Qodo learns your standards from review history

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread src/app/api/actions_distributed_task.py Resolved
Comment thread src/app/api/actions_distributed_task.py Resolved
Comment thread src/app/api/actions_distributed_task.py Resolved
Comment thread src/app/services/workflow_service.py Resolved
Comment thread src/app/api/actions.py Resolved
@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 18, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk reflects a large diff modifying workflow execution behavior without feature flags, balanced by solid test coverage (35%), zero protected or security-sensitive path modifications, and full alignment with the linked tracking issue.

Previous run

Risk Assessment: moderate (2/5)

Details

Moderate risk reflects a large diff modifying workflow execution behavior without feature flags, balanced by solid test coverage, zero protected or security-sensitive path modifications, and full alignment with the linked tracking issue.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

Moderate risk reflects a large diff modifying workflow execution behavior without feature flags, balanced by solid test coverage, zero protected or security-sensitive path modifications, and full alignment with the linked tracking issue.

Previous run (3)

Risk Assessment: moderate (2/5)

Details

Moderate risk reflects a large diff modifying workflow execution behavior without feature flags, balanced by solid test coverage, zero protected or security-sensitive path modifications, and full alignment with the linked tracking issue.

Previous run (4)

Risk Assessment: moderate (2/5)

Details

While the change size is large across 19 files and modifies existing workflow behavior without feature flags, composite risk remains moderate due to comprehensive test coverage, absence of protected path or dependency changes, low author contention, and full alignment with linked tracking issue #39.

Previous run (5)

Risk Assessment: moderate (2/5)

Details

While the change size is large across 19 files and modifies existing workflow behavior without feature flags, composite risk remains moderate due to comprehensive test coverage, absence of protected path or dependency changes, low author contention, and full alignment with linked tracking issue #39.

Previous run (6)

Risk Assessment: moderate (2/5)

Details

Large diff across 19 workflow engine and test files with moderate recent churn in core workflow services, balanced by zero protected or security-sensitive path changes, strong test coverage, and clear alignment with tracking issue scope.

Previous run (7)

Risk Assessment: moderate (2/5)

Details

Large diff across 19 workflow engine and test files with moderate recent churn in core workflow services, balanced by zero protected or security-sensitive path changes and high test file coverage.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [logic-error] src/app/services/workflow_scheduler.py:38 — Transitive reusable-workflow ancestors outside the current called workflow are not grouped into their caller's result. Example: caller A has a successful build and an optional skipped job; a successful top-level middle job needs A; caller B needs middle and has a job with if: success(). For B / leaf, _ancestors computes prefix B / , so _caller_of returns None for A / build and A / opt; they stay raw keys, A / opt reads as skipped, success() is false, and B's job is wrongly skipped (GitHub sees call A as successful). failure() can likewise see individual called-job results. Nested scopes only; top-level jobs group correctly. This push (import cleanup) does not touch it.
    Remediation: Resolve ancestor caller identities from workflow/caller metadata across scope boundaries instead of requiring the immediate workflow prefix. Add a regression test for A -> middle -> B with one successful and one optional skipped job inside A.
  • [logic-error] src/app/services/workflow_scheduler.py:79 — Call site of the same defect: name = _caller_of(key, prefix) or key in _ancestors falls back to the raw key for out-of-scope ancestors, skipping the grouping branch. One fix resolves both findings. See also: [logic-error] finding at workflow_scheduler.py:38.
    Remediation: Same fix as above.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNyYy9hcHAvc2VydmljZXMvd29ya2Zsb3dfc2NoZWR1bGVyLnB5IiwiaWQiOiJmXzkwYzcwMWZmYzIyOGUwZDkiLCJsaW5lIjo3OSwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzcmMvYXBwL3NlcnZpY2VzL3dvcmtmbG93X3NjaGVkdWxlci5weSIsImlkIjoiZl82Yjg4M2E5YzA4NmNiMDVjIiwibGluZSI6NDIsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2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ImlkIjoiZl85YTk3YzVjNGM1Nzk1MGY3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZGVmMDJkNjAzNmQ5MjZiNCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzdkNDc3NjU5ZDJiN2VjYWYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl82ODIxNjIxMjVmMjZjZTcyIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZDBjMWVkOWNhYjVlYzQ4MSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzk4MTA1ZTdhMzYyMzdlZTgiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [logic-error] src/app/services/workflow_scheduler.py:79 — Transitive reusable callers are not collapsed when the dependency path crosses into another called workflow. Example: reusable caller A has a successful build job and an optional job that skips itself; ordinary job middle needs A; reusable caller B needs middle. B / leaf with if: success() should run once middle succeeds. But _ancestors computes the prefix "B / " from B / leaf, so _caller_of("A / optional", "B / ") returns None (lines 38-39). name stays A / optional (line 79) and no aggregate result for A is recorded. job_status then reads the skipped result of A / optional and returns False, so B / leaf is wrongly skipped. A top-level job in the same position works, since its prefix is empty. The new tests cover chains inside one workflow namespace only.
    Remediation: Resolve each traversed dependency by its owning workflow/caller (e.g. try _caller_of against the prefix of the traversed key itself, or carry caller metadata on the rows), not only by the destination job's prefix. Add a regression test for A -> middle -> B where A succeeds with an optional skipped job and B has a job guarded by success().

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rp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9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfZDBjMWVkOWNhYjVlYzQ4MSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzk4MTA1ZTdhMzYyMzdlZTgiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl80MDJhOTU1NjRiZTI1NjIwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYmNjODVlMWViOGNhMGI3MSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzlhOTdjNWM0YzU3OTUwZjciLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kZWYwMmQ2MDM2ZDkyNmI0Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfN2Q0Nzc2NTlkMmI3ZWNhZiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzY4MjE2MjEyNWYyNmNlNzIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [logic-error] src/app/services/workflow_scheduler.py:42 — Reusable-call result aggregation applies only to a job's direct dependencies. For a chain call -> middle -> final, where the call holds one successful job and one intentionally skipped job, middle runs correctly but final with if: success() is skipped. _ancestors(final, all_jobs) uses only final's own _needs_aliases (empty), walks middle's flattened needs, and exposes the skipped inner job to success() instead of the call's aggregated result. The new tests cover only the direct dependent.
    Remediation: Keep reusable-call boundaries when walking transitive dependencies and supply the aggregated caller results to status-function evaluation. Add a regression test with a successful call containing an optional skipped job, an ordinary intermediate dependent, and a final dependent using success().

Earlier findings

  • src/app/services/workflow_service.py:624, logic-error — resolved. _alias_entry now skips an upstream alias when the caller's own entry is already in needs_context and none of the alias's called jobs are, so a skipped caller's real skipped entry is no longer overwritten.
  • src/app/api/actions_distributed_task.py:1392, permission-expansion — resolved. _local_action_repository now makes only public repositories and the job's own repository usable as actions; other private or internal repositories, same-owner ones included, are not usable. The download-info and archive routes both apply it.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6InNyYy9hcHAvc2VydmljZXMvd29ya2Zsb3dfc2VydmljZS5weSIsImlkIjoiZl9kMGMxZWQ5Y2FiNWVjNDgxIiwibGluZSI6NjI0LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InBlcm1pc3Npb24tZXhwYW5zaW9uIiwiZmlsZSI6InNyYy9hcHAvYXBpL2FjdGlvbnNfZGlzdHJpYnV0ZWRfdGFzay5weSIsImlkIjoiZl85ODEwNWU3YTM2MjM3ZWU4IiwibGluZSI6MTM5MiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic2VjdXJpdHkifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzcmMvYXBwL3NlcnZpY2VzL3dvcmtmbG93X3NlcnZpY2UucHkiLCJpZCI6ImZfNDAyYTk1NTY0YmUyNTYyMCIsImxpbmUiOjU1MCwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0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bWVuc2lvbiI6ImNyb3NzLXJlcG8tY29udHJhY3RzIn1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl85YTk3YzVjNGM1Nzk1MGY3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZGVmMDJkNjAzNmQ5MjZiNCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzdkNDc3NjU5ZDJiN2VjYWYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl82ODIxNjIxMjVmMjZjZTcyIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNDAyYTk1NTY0YmUyNTYyMCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2JjYzg1ZTFlYjhjYTBiNzEiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [logic-error] src/app/services/workflow_service.py:624 — Transitive caller aliases overwrite the real entry for a skipped caller. With A a reusable caller skipped at creation, B needs: A with if: always() forwarding needs.A.result as an input, and C needing B: creation redirects B's jobs to the skipped A row and drops their A alias, but the alias for B carried by C still holds the original needs_aliases.A. _alias_entry rebuilds needs[A] from called jobs that were never created and overwrites the real needs_context['A'], so A's result is empty instead of skipped. B's executed jobs get skipped, but C's needs.B.outputs is reconstructed from an empty input.
    Remediation: Propagate skipped-caller substitutions into recursively stored aliases, or preserve the actual caller row when resolving an upstream alias whose called jobs were replaced. Add a regression covering a skipped A, an always-running B that forwards A's result, and C reading B's output.

  • [permission-expansion] src/app/api/actions_distributed_task.py:1392 — _local_action_repository lets a job use any private/internal repository held by the same owner as an action source, with no per-repository grant. A collaborator who can run workflows in one repository can fetch the source archive of a sibling private repository they cannot otherwise read, through both actionsdownloadinfo and direct archive requests. GitHub's equivalent access is off by default and needs the owner's opt-in; the emulator allows it unconditionally. The PR documents this as a deliberate approximation, which is why it is medium, not high.
    Remediation: Keep public and same-repository access. Require an explicit target-repository action-sharing grant scoped to the calling repository for cross-repository private/internal access, defaulting to deny. Test a collaborator restricted to one sibling repository against both endpoints. If that is out of scope for this PR, record the approximation as a known limitation.

Earlier findings

  • src/app/api/actions_distributed_task.py:1421, auth-bypass — resolved. The archive route calls _get_job_from_download_credential, and both its Basic and Bearer branches reach validate_job_token, which returns 401 on an invalid token.
  • src/app/services/workflow_service.py:572, logic-error — resolved. A nested with: is now rendered level by level in its own workflow's terms (resolve_call_inputs_chain, 5b02bf0), with a twice-nested regression test.
  • PLAN.md:129, pattern-inconsistency — resolved. The six fixed-bug entries are listed under ## Fixed Bugs in the ledger index format.
  • src/app/api/actions.py:702, backward-incompatible — resolved. The rerun 404/422 behavior is already on the base branch; this PR's hunk only splits an import.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJhdXRoLWJ5cGFzcyIsImZpbGUiOiJzcmMvYXBwL2FwaS9hY3Rpb25zX2Rpc3RyaWJ1dGVkX3Rhc2sucHkiLCJpZCI6ImZfOWE5N2M1YzRjNTc5NTBmNyIsImxpbmUiOjE0MjEsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InNlY3VyaXR5In0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoibG9naWMtZXJyb3IiLCJmaWxlIjoic3JjL2FwcC9zZXJ2aWNlcy93b3JrZmxvd19zZXJ2aWNlLnB5IiwiaWQiOiJmX2RlZjAyZDYwMzZkOTI2Yj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yJpZCI6ImZfNDAyYTk1NTY0YmUyNTYyMCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2JjYzg1ZTFlYjhjYTBiNzEiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl82ODIxNjIxMjVmMjZjZTcyIiwic3RhdHVzIjoib3BlbiJ9XX0= -->

Review

Findings

High

  • [auth-bypass] src/app/api/actions_distributed_task.py:1421 — Job tokens are decoded without signature or expiry verification (_job_from_token_value), and this PR now serves private emulator repositories to whichever job that identity names. A forged sub=job:<id> token lets an unauthenticated caller download the private repository source of that job's owner. The same unverified identity is used by action resolution.
    Remediation: Validate job tokens cryptographically (algorithm, signature, expiry, and issuer/audience/revocation where applicable) before trusting any claim. Derive the job identity only from the validated token. Add regression tests that reject forged, expired and revoked tokens over both Basic and Bearer auth.

Medium

  • [logic-error] src/app/services/workflow_service.py:572 — With nested reusable-workflow callers, _alias_parent_inputs renders a nested caller's parent_inputs against the top-level run inputs only. Compound with: expressions (for example format('{0}-mid', inputs.ver)) stay unresolved at depth > 0 and are evaluated one level too high. With run ver=run, outer ver=2, and mid calling inner with format('v{0}', inputs.ver), a job in mid reading needs.inner.outputs.tag gets vrun-mid instead of v2-mid. The added test covers only one enclosing call with literal inputs.
    Remediation: Keep the chain of enclosing input contexts on aliases, or resolve each enclosing call's inputs in its own lexical context before evaluating the nested alias. Add a regression test with three nested reusable workflows, compound input expressions, and differing top-level and enclosing input values.

Low

  • [pattern-inconsistency] PLAN.md:129 — A leftover merge conflict marker (||||||| parent of 8fff4bb (docs: bug ledger entries for these fixes)) was committed under Fixed Bugs. It breaks the Markdown bullet list and corrupts the work ledger index.
    Remediation: Delete line 129 from PLAN.md.
  • [backward-incompatible] src/app/api/actions.py:702 — The run jobs list now omits jobs with status waiting, so consumers counting or polling all jobs see a smaller total_count until dependencies finish. The change is intentional and nearer GitHub's behaviour, but GET /actions/jobs/{job_id} still returns waiting jobs, so the two views disagree.
    Remediation: Optional: note the change in the release notes, or keep an escape hatch for consumers that need blocked jobs.

Earlier findings

  • src/app/services/workflow_service.py:550, logic-error — resolved: needs_alias_entries now passes the run's inputs through _alias_parent_inputs instead of an empty dict.
  • src/app/services/workflow_service.py:573, logic-error — resolved: _alias_entry now merges needs_aliases into the needs context used to render a caller's with: values.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (5)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJhdXRoLWJ5cGFzcyIsImZpbGUiOiJzcmMvYXBwL2FwaS9hY3Rpb25zX2Rpc3RyaWJ1dGVkX3Rhc2sucHkiLCJpZCI6ImZfOWE5N2M1YzRjNTc5NTBmNyIsImxpbmUiOjE0MjEsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InNlY3VyaXR5In0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoibG9naWMtZXJyb3IiLCJmaWxlIjoic3JjL2FwcC9zZXJ2aWNlcy93b3JrZmxvd19zZXJ2aWNlLnB5IiwiaWQiOiJmXzQwMmE5NTU2NGJlMjU2MjAiLCJsaW5lIjo1NTAsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoibG9naWMtZXJyb3IiLCJmaWxlIjoic3JjL2FwcC9zZXJ2aWNlcy93b3JrZmxvd19zZXJ2aWNlLnB5IiwiaWQiOiJmX2JjYzg1ZTFlYjhjYTBiNzEiLCJsaW5lIjo1NzMsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6InNyYy9hcHAvYXBpL2FjdGlvbnMucHkiLCJpZCI6ImZfNjgyMTYyMTI1ZjI2Y2U3MiIsImxpbmUiOjcwMiwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImNyb3NzLXJlcG8tY29udHJhY3RzIn1dfQ== -->

Review

Findings

High

  • [auth-bypass] src/app/api/actions_distributed_task.py:1421 — The archive route now serves private local repository contents to any caller presenting a forged job token. The root cause predates this PR: _job_from_token_value and _get_job_from_download_credential are unchanged from base and only base64-decode the JWT payload and load the job named by sub, with no signature or exp check, although a correct verifier (validate_job_token in src/app/services/job_token_service.py) exists and is unused on this path. This PR adds the private-data sink: dt_action_archive and actionsdownloadinfo now resolve and git archive local private repositories whenever the job's repository has the same owner. Job IDs are sequential, so an unauthenticated caller can forge sub: job:<n> for a job in the victim owner's repository and download any of that owner's private repositories at any ref. Issue Upstream the emulator fixes found by fullsend's behaviour tests #39 says job-token checks land in PR Check job tokens, caller roles and runner scope on Actions routes as GitHub does #31, which this PR is listed to merge after; if Check job tokens, caller roles and runner scope on Actions routes as GitHub does #31 verifies tokens on these helpers, the exposure goes away.
    Remediation: Do not merge before job-token verification lands, whether from PR Check job tokens, caller roles and runner scope on Actions routes as GitHub does #31 or here. Have _job_from_token_value call job_token_service.validate_job_token so signature and expiry are verified for Bearer and Basic download credentials and for actionsdownloadinfo. Add tests with unsigned, wrongly signed, expired, and modified-sub tokens against a private repository's archive.

Medium

  • [logic-error] src/app/services/workflow_service.py:550 — Top-level reusable-call output evaluation always passes an empty parent_inputs dict, so the triggering workflow's inputs are lost. With a compound caller expression such as ${{ inputs.version || 'fallback' }}, the called jobs render it against the run's inputs and get '1.2', while the alias re-renders it with inputs: {} and gets 'fallback', so needs.<caller>.outputs disagrees with what the called jobs received.
    Remediation: At the top level pass run_context.get('inputs') or {} as parent_inputs, keeping the explicitly resolved inputs for nested aliases. Add an integration test using a workflow_dispatch input in a compound caller with: expression.

  • [logic-error] src/app/services/workflow_service.py:573 — _alias_entry re-renders a call's with: inputs using only the raw needs_context, which has no entries for reusable-caller aliases. In a chain A → B → C where B passes version: ${{ needs.A.outputs.version }}, B's called jobs get the value through their own _needs_aliases[A], but when C evaluates B's alias needs.A is missing, so inputs.version and anything derived from it is an empty string.
    Remediation: Evaluate each alias's inputs against a needs context that includes its upstream caller aliases, or store the resolved inputs when the call's jobs are promoted. Add an A → B → dependent integration test that forwards an output through B's inputs.

Low

  • [backward-incompatible] src/app/api/actions.py:702 — The run jobs list now leaves out jobs with status 'waiting' (blocked on needs), so total_count and jobs grow over time for in-progress runs. The single-job GET is not filtered and still returns a 'waiting' job by ID. The PR states this matches GitHub and the response shape is unchanged.
    Remediation: Confirm known consumers do not depend on seeing blocked jobs in the list.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (6)

Review

Reason: tool-failure

This PR was NOT reviewed. Do not count this as an approval.

Previous run (7)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJhdXRoLWJ5cGFzcyIsImZpbGUiOiJzcmMvYXBwL2FwaS9hY3Rpb25zX2Rpc3RyaWJ1dGVkX3Rhc2sucHkiLCJpZCI6ImZfNWRhNWJjOTRmNzI1ZTg1NyIsImxpbmUiOjE0MjEsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InNlY3VyaXR5In0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoiYXBpLWNvbnRyYWN0Iiwi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iOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImFwaS1jb250cmFjdCIsImZpbGUiOiJzcmMvYXBwL3NlcnZpY2VzL3dvcmtmbG93X3NlcnZpY2UucHkiLCJpZCI6ImZfNTQ1MmY3NTNhYjk3MDEyYyIsImxpbmUiOjc0MywiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzBkMzkxY2FiODIyOGE1ZWMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl81ZGE1YmM5NGY3MjVlODU3Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzU0NTJmNzUzYWI5NzAxMmMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8yYjM5MGVkMGVjY2NjMzU4Iiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzQxYTMyOTVjZDE4MTMxYTEiLCJzdGF0dXMiOiJvcGVuIn1dfQ== -->

Review

Findings

High

  • [auth-bypass] src/app/api/actions_distributed_task.py:1421 — Private action archives can still be downloaded with forged job credentials. _job_from_token_value only base64-decodes the token payload, requires sub="job:<id>" and loads that job; it never checks signature, expiry, issuer or audience. dt_action_archive and actionsdownloadinfo authorize private/internal local repositories against that forgeable job identity, and this PR newly serves private local archives on this path.
    Remediation: Verify job tokens cryptographically (same key/algorithm as issue_job_token, explicit algorithm allowlist, expiry/issuer/audience) on both the Bearer and Basic paths, and add tests that unsigned, wrongly signed and expired tokens cannot resolve or download private actions.

Medium

  • [api-contract] src/app/services/workflow_service.py:574 — Reusable-workflow outputs are evaluated with only a jobs context. GitHub also allows inputs, github and vars in on.workflow_call.outputs.<name>.value, so an output declared as ${{ inputs.version }} comes out empty even when the caller supplies version, and needs.<caller>.outputs silently differs from GitHub.
    Remediation: Keep each caller's resolved input context in its alias and evaluate workflow_call outputs with the applicable github, vars, inputs and jobs contexts, including nested calls; add a regression test for an output that references a supplied or defaulted input.

Low

  • [injection-vuln] src/app/services/workflow_service.py:236 — _refusal_steps builds a ::error:: workflow command and escapes only single quotes for the shell; newlines, ::, %0A/%0D, ANSI escapes and control characters in the interpolated reason are not sanitized. Reusable-call refusal reasons include the workflow-authored uses value. Latent today (reusable refusals complete server-side; executed container reasons are fixed strings), so advisory.
    Remediation: Sanitize the reason for the workflow-command protocol separately from shell quoting, or avoid building executable annotation commands for server-side refusals.
  • [scope-bundling] PLAN.md:122 — The PR bundles six separate bug fixes into one pull request. All sit in the workflow execution domain under tracking issue Upstream the emulator fixes found by fullsend's behaviour tests #39, but six independent fixes are harder to review than smaller, focused PRs.
  • [backward-incompatible] src/app/api/actions.py:702 — GET .../actions/runs/{run_id}/jobs no longer returns jobs with status waiting, so jobs and total_count shrink for clients that expected every job. This matches GitHub's behavior but is visible to existing integration tests.
    Remediation: Note the change in release notes or the changelog; optionally add a query parameter to include waiting jobs.

Earlier findings

  • src/app/services/workflow_service.py:820, logic-error — resolved. Dependents of a reusable-workflow caller are now judged by the caller's aggregated result (alias_result), covered by test_a_job_skipped_by_its_own_condition_in_the_call_does_not_skip_the_dependent.
  • src/app/services/workflow_service.py:743, api-contract — resolved. Nested caller aliases are preserved and built recursively (_callers, _prefix_alias, _alias_entry), covered by test_a_call_output_read_from_a_nested_callers_output.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (8)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJzcmMvYXBwL3NlcnZpY2VzL3dvcmtmbG93X3Nlcn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need on a reusable-workflow caller is expanded into needs on every called job. If the called workflow has a successful job and a conditionally skipped one, dispatch_ready_jobs skips the dependent before the caller alias (reported as success) is consulted, so a plain needs: call job never runs after such a workflow.
    Remediation: Keep waiting for all underlying jobs, but evaluate dependency success and implicit success() from the aggregate caller result instead of per-job needs. Add an integration test with a successful and a skipped callee job followed by a normal dependent.

  • [auth-bypass] src/app/api/actions_distributed_task.py:1409 — Private local action archives rely on _job_from_token_value, which only base64-decodes the JWT payload (sub: job:<id>) and never verifies signature or expiry. A forged token for an existing job id can download a private action archive from the same owner. The decoder predates this PR, but this PR adds the private-repository exposure.
    Remediation: Verify job tokens cryptographically (signature, algorithm, expiry) before deriving job identity in both the download-info and archive endpoints. Add regression tests for forged and expired tokens with Bearer and Basic credentials.

Medium

  • [api-contract] src/app/services/workflow_service.py:743 — Nested reusable-workflow outputs are lost. The caller alias is built from the already-flattened called_jobs (keys like nested / inner), so a callee output such as ${{ jobs.nested.outputs.value }} evaluates to an empty string. The nested-call test does not cover forwarding outputs across that boundary.
    Remediation: Preserve the callee's logical caller aliases and evaluate their outputs recursively. Add a three-level reusable-workflow test.

Low

  • [scope-bundling] PLAN.md:122 — Six distinct fixes are bundled, including the security-relevant emulator-hosted action change. Each has its own ledger entry and tests, so this is advisory.
    Remediation: Consider splitting security-relevant changes from workflow-semantics fixes in future submissions.

  • [backward-incompatible] src/app/api/actions.py:702 — The run jobs list now omits waiting jobs and total_count follows, while the get-job-by-id endpoints still return them, so the two views disagree. Downstream suites may notice.
    Remediation: Note the change in release notes and check the single-job endpoint and any run-attempt jobs list for consistency.


Labels: The PR fixes emulator behaviour that diverged from GitHub.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:24 PM UTC · Completed 11:38 PM UTC

Commit: 9f435de · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.77

fullsend-ai-review[bot]

This comment was marked as outdated.

@waynesun09
waynesun09 force-pushed the emu-06-workflow-semantics branch from 9f435de to 579ae38 Compare November 18, 2026 23:40
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 11:42 PM UTC · Completed 11:44 PM UTC

Commit: 579ae38 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.33

This review was superseded by a newer commit. Check the current pull request HEAD's review status before merging.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ❌ Failure (post-script /home/runner/work/github-emulator/github-emulator/.fullsend/.fullsend-cache/resources/sha256/e7a9998a1b648e11a40a2f74e5b270e63707430a0953227f2f651b4c86d70654/scripts/post-review.sh failed:…) · Started 11:47 PM UTC · Completed 12:10 AM UTC

Commit: 08ae2f4 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.41

@fullsend-ai-review fullsend-ai-review Bot removed the risk/moderate PR risk: moderate label Nov 19, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:09 AM UTC · Completed 3:22 AM UTC

Commit: 08ae2f4 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.51

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 19, 2026
fullsend-ai-review[bot]

This comment was marked as outdated.

@jctanner jctanner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes — blocked on ordering plus two fixes:

  1. Blocker (verified at head): forged job tokens now reach a private-data sink. _job_from_token_value still decodes the payload without checking the signature or expiry, and this PR's emulator-hosted actions make dt_action_archive/actionsdownloadinfo serve git archive of any private repository of the job's owner — with sequential job ids, a forged sub: job:<n> reads private repos at any ref. Do not merge before job-token verification lands: either merge #31 first (it fixes exactly this) or call validate_job_token here, with the negative tests (unsigned, wrong signature, expired, modified sub) against a private repository's archive.
  2. Top-level reusable-call outputs drop the calling workflow's inputs (parent_inputs hard-coded {} in the alias construction, workflow_service.py ~549): with a compound with: expression, needs.<caller>.outputs disagrees with what the called jobs received. Pass run_context.get('inputs') or {} at the top level.
  3. Chained calls lose upstream alias needs when the alias re-renders with: against a needs context that has no caller-alias entries — forward outputs through B's inputs break in an A → B → C chain.
    The six semantic fixes themselves (container refusal, unresolved calls, skipped callers, needs-on-caller, local action resolution, jobs list) are verified correct and well tested.

@waynesun09
waynesun09 force-pushed the emu-06-workflow-semantics branch from 08ae2f4 to 062f9b1 Compare November 19, 2026 17:30
@waynesun09

Copy link
Copy Markdown
Member Author

Thanks, James. Three items:

  1. Job-token check. This PR relies on Check job tokens, caller roles and runner scope on Actions routes as GitHub does #31 and merges after it. Check job tokens, caller roles and runner scope on Actions routes as GitHub does #31 verifies the job token (signature, issuer, lifetime) on every job-server route, actionsdownloadinfo and the action archive included. So once both are on main, the emulator-hosted action routes only see verified jobs. I've kept the check out of this PR so the token handling stays in one place, and I won't merge Run workflow semantics as GitHub does: container jobs, unresolved and skipped reusable calls, needs on a caller, emulator-hosted actions, jobs list #37 ahead of Check job tokens, caller roles and runner scope on Actions routes as GitHub does #31.

  2. Top-level call outputs and the calling workflow's inputs. Fixed in 062f9b1. A top-level call's with: is now rendered against the run's inputs, so needs.<caller>.outputs agrees with what the called jobs received. A call inside a called workflow uses that workflow's own inputs instead. Tests:

    • a compound with: on dispatch inputs (format('{0}-x', inputs.ver));
    • the same inside a nested call.

    Both failed before the fix.

  3. Chained calls. Fixed in 062f9b1. Each call's alias carries the aliases of the calls it needs, and its with: is rendered with those entries in needs, the same needs.A a plain dependent of A sees. Tests:

    • an A → B → C chain that forwards A's output through B's inputs into C;
    • a unit test of the alias step.

    Both failed before the fix.

One limit I've left as is: two or more levels below the top level, a still-unrendered compound with: falls back to the run's inputs. Before, it rendered as "".

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 5:32 PM UTC · Completed 5:47 PM UTC

Commit: 062f9b1 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $4.88

fullsend-ai-review[bot]

This comment was marked as outdated.

@waynesun09
waynesun09 force-pushed the emu-06-workflow-semantics branch from 062f9b1 to 5b02bf0 Compare November 19, 2026 18:05
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:07 PM UTC · Completed 6:22 PM UTC

Commit: 5b02bf0 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.17

fullsend-ai-review[bot]

This comment was marked as outdated.

@waynesun09
waynesun09 force-pushed the emu-06-workflow-semantics branch from 5b02bf0 to a586ac4 Compare November 19, 2026 18:30
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:33 PM UTC · Completed 6:48 PM UTC

Commit: a586ac4 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.46

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:59 PM UTC · Completed 7:07 PM UTC

Commit: adf76e6 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.49

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:25 PM UTC · Completed 7:32 PM UTC

Commit: f629120 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.48

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread src/app/services/workflow_scheduler.py Resolved
Comment thread src/app/services/workflow_scheduler.py Resolved

@jctanner jctanner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-verified at f629120 — all findings fixed: job-token verification now covers the archive path (merged #31 put validate_job_token in _job_from_token_value, closing the forged-token private-archive sink), and parent_inputs_chain keeps the calling workflow's inputs and chained alias needs through nested calls. The six semantic fixes were verified in the first round. Approving.

Neither runner starts job or service containers, so a job with
container: or services: ran its steps on the runner host and passed or
failed for reasons unrelated to the workflow. Replace its steps with one
that fails with an ::error:: naming the unsupported keys, as docker://
actions already are.

A reusable-workflow call to a repository the emulator does not hold, or
one that nests too deep or calls itself, became a placeholder job with
no steps, and a job with no steps passed. Give the placeholder one step
that fails with an ::error:: saying why, and for a missing repository,
that the repository has to be pushed here first.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
On GitHub a caller skipped by its if: is one skipped job, and a run
whose jobs were all skipped concludes skipped. The emulator expanded
the called jobs, listed each as skipped, and concluded the run success.
A caller without needs: now has its if: evaluated once at run creation;
when false, the run gets one skipped job under the caller's key.

A job with needs: <caller> waited for a job that never existed, since
the caller is inlined as its called jobs, and needs.<caller>.outputs
had nothing to read. A need on a caller now becomes a need on every job
the call inlined, and at promotion needs.<caller> is built from them:
the worst of their results, and the callee's on.workflow_call.outputs
evaluated with a jobs context of the called jobs. Nested calls
re-prefix those keys at each level.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
Every `uses: owner/repo@ref` was resolved and fetched upstream, so an
action pushed to a repository here failed with "does not exist
upstream". Resolve against a repository here first and serve its
archive from `git archive` (one top-level directory, as GitHub's),
cached apart from upstream archives.

As on GitHub, a job may use an action from a public repository, from
its own repository, or from a private one with the same owner (GitHub
also needs that owner to allow it; the emulator has no such setting).
A repository here that the job may not use is unresolvable, and is not
looked up upstream under the same name; the archive route applies the
same rule.

GHES goes to github.com only for a repository it lacks. The emulator
also goes upstream when the repository is here but lacks the ref, so a
partial local copy of a public action still works.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
Probed side by side: while job a ran, GitHub's GET .../runs/{id}/jobs
listed only a (total_count 1); b and c, which need a, appeared once
they were queued. The emulator listed them as "waiting", the status
GitHub uses for a job held for an environment approval, so a stage that
had not started looked like part of the run.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
One docs/bugs/fixed entry per fix, listed under Fixed Bugs in PLAN.md.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
…aller's result

An unresolvable reusable-workflow call's failing placeholder defaulted to
runs-on ubuntu-latest, so on a stack whose runners do not offer that
label it stayed queued and the run never finished. GitHub fails such a
run without a runner. The placeholder is now concluded failure by the
emulator itself: at run creation when it has no needs, or when its needs
finish and its if: holds. The reason goes to its step and its log.

A job that needs a skipped caller read needs.<caller>.result as "": the
alias built from the never-created called jobs replaced the skipped
row's result. A redirected need now drops that alias.

Only top-level callers are redirected to their skipped row. A nested
caller with the same key as a skipped top-level caller was redirected
too, and its dependent was skipped instead of waiting for it.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
A private or internal repository on the emulator that a job may use, but
that lacks the requested ref or commit, was resolved and fetched from
github.com under the same name. That is code from an unrelated
repository. It is now unresolvable (download info) and a 404 (archive).
The upstream fallback for a missing ref stays for public repositories.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
…puts

- A job that needs a reusable-workflow call was skipped when one of the
  called jobs was skipped by its own if:, though the call's result is
  success. Needs that come from a call are now judged as one group, by
  the call's result: failure, then cancelled, then success, then skipped
  (skipped only when every called job was). success() and failure() in
  the dependent's if: read the same result. A dependent now waits for
  every called job to finish, as on GitHub.
- A call's outputs that read a nested call's outputs
  (jobs.<nested>.outputs.x in on.workflow_call.outputs) rendered empty,
  since the jobs context held only the flattened called jobs. Nested
  calls are now entries in that context, built the same way.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
on.workflow_call.outputs.<id>.value was rendered with only a jobs
context, so an output such as ${{ inputs.version }} came out empty. GitHub
makes github, jobs, vars and inputs available there (and not secrets).
Each call's alias now keeps its resolved inputs (the caller's with: and
the callee's defaults), and outputs are rendered with all four contexts,
nested calls included.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
Review follow-up: a top-level call's with: was rendered against no inputs, so needs.<caller>.outputs could differ from what the called jobs received when with: held an expression on the calling workflow's inputs. It is now rendered against the run's inputs at the top level, and against the calling workflow's own inputs for a call inside a called workflow.

In a chain of calls (A, then B with needs: A and with: x: ${{ needs.A.outputs.o }}, then C reading B's outputs), B's with: was rendered without needs.A, so A's output reached C empty. Each call's alias now carries the aliases of the calls it needs, and its with: is rendered with those entries in needs, as a plain dependent of A sees them.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
A call two or more levels down had its with: rendered against the run's inputs, not its calling workflow's: run ver=run, outer ver=2, mid ver=format('{0}-mid', inputs.ver) gave mid's jobs 'run-mid' instead of '2-mid'. Each call's with: is now resolved outermost first, each level's rendered inputs being the inputs context of the next, for both the alias and the called jobs. A bare ${{ inputs.x }} is copied in at materialization only when the passed value is a literal; an expression is rendered with the job's inputs instead.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
A job needing call B, which needs a call A skipped by its if:, read needs.B.outputs from an empty needs.A: the copy of A's alias inside B's rebuilt needs[A] from called jobs that were never created, replacing A's skipped row. An alias entry is now skipped when needs already has that key and none of that caller's called jobs exist.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
GitHub lets other repositories use a private repository's actions only once its owner enables that access, and the emulator has no such setting. A job may now use a repository here as an action only when it is public or is the job's own repository; any other private or internal one is unresolvable (download info) and a 404 (archive), and is not looked up upstream.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
success() and failure() read every ancestor. For call -> middle -> final, final saw the call's job skipped by its own if: as an unsuccessful ancestor and was skipped, though the call succeeded and middle ran. A called job reached through another job is now judged as its call (the worst result of the call's finished jobs), at any depth, the same rule a direct dependent uses. The caller is found from the job key (<caller> / <job>).

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
@waynesun09
waynesun09 force-pushed the emu-06-workflow-semantics branch from f629120 to d0bbc92 Compare November 20, 2026 00:56
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:58 AM UTC · Completed 1:18 AM UTC

Commit: d0bbc92 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.64

@waynesun09
waynesun09 merged commit 50058dd into main Nov 20, 2026
23 checks passed
@waynesun09
waynesun09 deleted the emu-06-workflow-semantics branch November 20, 2026 01:11
@fullsend-ai-review

Copy link
Copy Markdown

Review skipped — this PR is already merged.

The /fs-review command only reviews open PRs/MRs.

Posted by fullsend post-review check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants